package org.csmzxy.class2333;


public class Example14 {
    public static void  main(String[] args){
        //dog是动物子类，向上转型（自动的）
        Animal animal = new Dog();
        animal.speak();

        Dog dog = (Dog) animal;
        dog.houseKeep();
    }
}